package com.central.user.dao;

import com.central.user.model.FightInfo;
import com.central.user.model.PlayerBagInfo;
import com.central.user.model.PlayerBaseInfo;
import com.central.user.model.PlayerDetailsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * bsdld数据库
 */
@Mapper
public interface BsdldDao {

    /** 查询战斗信息条数 */
    @Select("select count(*) from fightinfo")
    int countFightInfo();

//    @Select("select count(*) from Player")
    int countPlayer(Map<String, Object> params);

    List<FightInfo> findFightInfoAll(Map<String, Object> params);

    List<PlayerBaseInfo> findPlayerInfo(Map<String, Object> params);

    @Select("select * from Player where playerId = #{playerId}")
    List<PlayerDetailsInfo> findByPlayerId(String playerId);

    @Select("select * from playerbag where playerId = #{playerId}")
    List<PlayerBagInfo> findBagInfo(String playerId);
}
